//
//  GPPhotosCollectionCell.m
//  Keping
//
//  Created by 23 on 2017/12/9.
//  Copyright © 2017年 柯平. All rights reserved.
//

#import "GPPhotosCollectionCell.h"
#import "GPPhotosModel.h"

@interface GPPhotosCollectionCell ()

@property (weak, nonatomic) IBOutlet UIImageView *imageView;
@property (weak, nonatomic) IBOutlet UIButton *chooseButton;


@end

@implementation GPPhotosCollectionCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setPhoto:(GPPhotosModel *)photo
{
    _photo = photo;
    
    self.imageView.image = photo.image;
    self.chooseButton.selected = photo.selected;
}


@end
